<h1>New business</h1>

<% form_for(@business) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :overall_rating %><br />
    <%= f.text_field :overall_rating %>
  </p>
  <p>
    <%= f.label :price_rating %><br />
    <%= f.text_field :price_rating %>
  </p>
  <p>
    <%= f.label :type %><br />
    <%= f.text_field :type %>
  </p>
  <p>
    <%= f.label :website_url %><br />
    <%= f.text_field :website_url %>
  </p>
  <p>
    <%= f.label :street1 %><br />
    <%= f.text_field :street1 %>
  </p>
  <p>
    <%= f.label :street2 %><br />
    <%= f.text_field :street2 %>
  </p>
  <p>
    <%= f.label :neigbourhood %><br />
    <%= f.text_area :neigbourhood %>
  </p>
  <p>
    <%= f.label :city %><br />
    <%= f.text_area :city %>
  </p>
  <p>
    <%= f.label :state %><br />
    <%= f.text_area :state %>
  </p>
  <p>
    <%= f.label :zip_code %><br />
    <%= f.text_field :zip_code %>
  </p>
  <p>
    <%= f.label :number_of_overal_ratings %><br />
    <%= f.text_field :number_of_overal_ratings %>
  </p>
  <p>
    <%= f.label :number_of_price_ratings %><br />
    <%= f.text_field :number_of_price_ratings %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', businesses_path %>
